import request from "@/utils/request";

export const getServiceList = () =>{
    return request.get('service/list')
}

export const deleteByServiceId = (id) =>{
    return request.delete(`/service/delete/${id}`)
}

export const addService = (serviceData) =>{
    return request.post('/service/add',serviceData)
}

export const updateService = (serviceData) =>{
    return request.put('/service/update',serviceData)
}